/* TMDB页面专用样式 */

/* 搜索结果卡片样式 */
.tmdb-card {
    width: 200px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tmdb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tmdb-poster-container {
    position: relative;
    width: 200px;
    height: 294px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f3f4f6;
}

.tmdb-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tmdb-card:hover .tmdb-poster {
    transform: scale(1.05);
}

.tmdb-title {
    margin-top: 8px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tmdb-release-date {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 2px;
}

/* 横向滚动容器样式 - 隐藏滚动条 */
#movies-scroll-container,
#tv-scroll-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#movies-scroll-container::-webkit-scrollbar,
#tv-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 自动滚动时的平滑过渡 */
#movies-scroll-container,
#tv-scroll-container {
    transition: scroll-behavior 0.3s;
}

/* 加载动画样式 */
.loading-spinner-container {
    min-height: 200px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-bottom-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 搜索结果容器样式 */
#search-results {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tmdb-card {
        width: 150px;
    }
    
    .tmdb-poster-container {
        width: 150px;
        height: 220px;
    }
    
    .flex.flex-col.md\:flex-row.gap-4 {
        flex-direction: column;
    }
    
    #results-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}